<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <!-- 
        vue中要实现内容的渲染有三种选择
        1、插值表达式
        2、v-text
        3、v-html
        属性绑定指令
        v-bind:属性="动态的数据"
     -->
    <div id="root">
        <h1>个人介绍</h1>
        <div>姓名:{{name}}</div>
        <div>网址1:{{url}}</div>
        <div>
            网址2: <span v-text="url"></span>
        </div>
        <div>
            网址3：<span v-html="url"></span>
        </div>
        <div>
            <img v-bind:src="imgUrl" alt="" width="80px">
        </div>
        <div>
            <img :src="imgUrl" alt="" width="80px">
        </div>
        
    </div>
    <script>
        new Vue({
            el:'#root',
            data(){
                return{
                    name:'Giles',
                    url:'<a href="http://www.woniuxy.com">点击进入</a>',
                    imgUrl:'https://woniuimage.oss-cn-hangzhou.aliyuncs.com/woniuimage/teacher/20220222/abc7a6e787be41d0b12aa41e429b71d2.png'
                }
            }
        })
    </script>
</body>
</html>